package cn.xiaobai;

import cn.xiaobai.utils.SourceUtils;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;
import java.net.URL;

/**
 * @Author yangdaji
 * @Date 2023/12/20
 * @PackageName cn.xiaobai
 * @ClassName test
 */
public class test {

    public void start()throws IOException {
        Stage stage = new Stage();
        URL path = SourceUtils.getFxmlSource("test");
        FXMLLoader fxmlLoader = new FXMLLoader(path);
        Scene scene = new Scene(fxmlLoader.load());
        stage.setScene(scene);
        stage.setTitle("test 跳转");
        stage.show();
    }
}
